import request from '@/utils/request'




// 短租订单列表 https://www.showdoc.com.cn/1846525842933182/8547107341420538
export function index(data) {
    return request({
        url: '/order/orderBasic/list',
        method: 'get',
        params: data
    })
}
export function orderCount() {
    return request({
        url: '/order/orderBasic/orderCount',
        method: 'get'
    })
}
// 导出订单
export function exportBasic(query) {
  return request({
    url: "/order/orderBasic/export",
    method: "get",
    params: query,
  });
}
// 下载导入模板
export function importTemplate() {
  return request({
    url: '/order/orderBasic/importTemplate',
    method: 'get'
  })
}
// 还车验车收费项 https://www.showdoc.com.cn/1846525842933182/8611637332204534
export function alsoCarItems(data) {
    return request({
        url: '/order/orderBasic/alsoCarItems',
        method: 'get',
        params: data
    })
}

// 还车验车提交 https://www.showdoc.com.cn/1846525842933182/8611637332204534
export function alsoCarTest(data) {
    return request({
        url: '/order/orderBasic/alsoCarTest',
        method: 'post',
        params: data
    })
}

// 日志列表 https://www.showdoc.com.cn/1846525842933182/8496835659012726
export function operationLog(params) {
    return request({
        url: '/member/basic/operationLog',
        method: 'get',
        params: params
    })
}

// 选择车型 https://www.showdoc.com.cn/1846525842933182/8564551714853427
export function classificationMoldelList(data) {
    return request({
        url: '/order/orderBasic/classificationMoldelList',
        method: 'get',
        params: data
    })
}

// 查询套餐 https://www.showdoc.com.cn/1846525842933182/8567400477031665
export function modelMealList(data) {
    return request({
        url: '/order/orderBasic/modelMealList',
        method: 'post',
        data: data,
    })
}

// 短租选择方案套餐 https://www.showdoc.com.cn/1846525842933182/8567494746573451
export function confirmationOrder(data) {
    return request({
        url: '/order/orderBasic/confirmationOrder',
        method: 'post',
        data: data,
    })
}
// 短租费用缴纳列表
export function getAllPaymentOfFees(orderNo) {
    return request({
        url: '/order/orderBasic/getAllPaymentOfFees/'+orderNo,
        method: 'get',
    })
}
// 编辑回显费用项
export function editEchoExpenseItem(orderNo) {
    return request({
        url: '/order/orderBasic/editEchoExpenseItem/'+orderNo,
        method: 'get',
    })
}
// 短租续租费用是否支付 https://www.showdoc.com.cn/1846525842933182/8567494746573451
export function orderRenewalCost(orderNo) {
    return request({
        url: '/order/orderBasic/orderRenewalCost/'+orderNo,
        method: 'get',
    })
}
// 短租续租费用是否支付 https://www.showdoc.com.cn/1846525842933182/8567494746573451
export function getRevisedOrderData(orderNo) {
    return request({
        url: '/order/orderBasic/getRevisedOrderData',
        method: 'get',
        params: {orderNo:orderNo}
    })
}
// 短租续租费用 https://www.showdoc.com.cn/1846525842933182/8567494746573451
export function doRevisedOrderData(data) {
    return request({
        url: '/order/orderBasic/revisedOrderData',
        method: 'post',
        data: data,
    })
}
// 短租续租费用 https://www.showdoc.com.cn/1846525842933182/8567494746573451
export function renewalFee(data) {
    return request({
        url: '/order/orderBasic/renewalFee',
        method: 'post',
        data: data,
    })
}
// 短租换车费用
export function changeFee(data) {
    return request({
        url: '/order/orderBasic/changeFee',
        method: 'post',
        data: data,
    })
}

// 短租订单详情 https://www.showdoc.com.cn/1846525842933182/8559520456211191
export function detail(orderNo) {
    return request({
        url: '/order/orderBasic/' + orderNo,
        method: 'get'
    })
}

// 短租订单详情 https://www.showdoc.com.cn/1846525842933182/8559520456211191
export function orderCostIspay(orderNo,receiveType) {
    return request({
        url: '/order/orderBasic/orderCostIspay/' + orderNo+'/'+receiveType,
        method: 'get'
    })
}

// 短租订单租金明细 https://www.showdoc.com.cn/1846525842933182/8559520456211191
export function rentDetail(orderNo) {
    return request({
        url: '/order/orderBasic/rentDetail/' + orderNo,
        method: 'get'
    })
}
// 短租订单租金明细 https://www.showdoc.com.cn/1846525842933182/8559520456211191
export function costAdjustmentDetail(orderNo) {
    return request({
        url: '/order/orderBasic/costAdjustmentDetail/' + orderNo,
        method: 'get'
    })
}
// 短租订单押金明细 https://www.showdoc.com.cn/1846525842933182/8559520456211191
export function depositDetail(orderNo) {
    return request({
        url: '/order/orderBasic/depositDetail/' + orderNo,
        method: 'get'
    })
}
// 短租订单违章押金明细 https://www.showdoc.com.cn/1846525842933182/8559520456211191
export function illegalDetail(orderNo) {
    return request({
        url: '/order/orderBasic/illegalDetail/' + orderNo,
        method: 'get'
    })
}// 短租订单违章押金明细 https://www.showdoc.com.cn/1846525842933182/8559520456211191
export function illegalDepositDetail(orderNo) {
    return request({
        url: '/order/orderBasic/illegalDepositDetail/' + orderNo,
        method: 'get'
    })
}
// 短租订单续租费用明细 https://www.showdoc.com.cn/1846525842933182/8559520456211191
export function renewalDetail(orderNo) {
    return request({
        url: '/order/orderBasic/renewalDetail/' + orderNo,
        method: 'get'
    })
}
// 还车产生费用 https://www.showdoc.com.cn/1846525842933182/8559520456211191
export function returnRecord(orderNo) {
    return request({
        url: '/order/orderBasic/returnRecord/' + orderNo,
        method: 'get'
    })
}
// 违章费用 https://www.showdoc.com.cn/1846525842933182/8559520456211191
export function violationRecord(orderNo) {
    return request({
        url: '/order/orderBasic/violationRecord/' + orderNo,
        method: 'get'
    })
}


// 取消订单费用明细 https://www.showdoc.com.cn/1846525842933182/8559520456211191
export function cancelDetail(orderNo) {
    return request({
        url: '/order/orderBasic/cancelDetail/' + orderNo,
        method: 'get'
    })
}
// 提前还车订单费用明细 https://www.showdoc.com.cn/1846525842933182/8559520456211191
export function earlyReturnDetail(data) {
    return request({
        url: '/order/orderBasic/earlyReturnDetail',
        method: 'post',
        data,
    })
}

// 短租订单费用明细 https://www.showdoc.com.cn/1846525842933182/8559520456211191
export function depositRefundDetail(orderNo) {
    return request({
        url: '/order/orderBasic/depositRefundDetail/' + orderNo,
        method: 'get'
    })
}

export function renewRecordInfo(id) {
    return request({
        url: '/order/orderBasic/renewRecordInfo/' + id,
        method: 'get'
    })
}
// 短租订单费用明细 https://www.showdoc.com.cn/1846525842933182/8559520456211191
export function depositSettlementDetails(orderNo) {
    return request({
        url: '/order/orderBasic/depositSettlementDetails/' + orderNo,
        method: 'get'
    })
}
// 短租订单费用明细 https://www.showdoc.com.cn/1846525842933182/8559520456211191
export function IllegalProcessing(orderNo) {
    return request({
        url: '/order/orderBasic/IllegalProcessing/' + orderNo,
        method: 'get'
    })
}
// 修改短租订单 https://www.showdoc.com.cn/1846525842933182/8547751219218336
export function put(data) {
    return request({
        url: '/order/orderBasic/',
        method: 'put',
        data,
    })
}

// 新增短租订单 https://www.showdoc.com.cn/1846525842933182/8547402672332975
export function add(data) {
    return request({
        url: '/order/orderBasic/',
        method: 'post',
        data,
    })
}

// 车损结算
export function vehicleDamage(data) {
    return request({
        url: '/order/orderBasic/vehicleDamage',
        method: 'post',
        data,
    })
}


// 续租预检
export function renewalInspection(data) {
    return request({
        url: '/order/orderBasic/renewalInspection',
        method: 'post',
        data,
    })
}
// 新增短租订单 https://www.showdoc.com.cn/1846525842933182/8547402672332975
export function decisionOrderRenewal(data) {
    return request({
        url: '/order/orderBasic/decisionOrderRenewal',
        method: 'post',
        data,
    })
}
export function renewRecordEdit(data) {
    return request({
        url: '/order/orderBasic/renewRecordEdit',
        method: 'post',
        data,
    })
}


// 删除短租订单 https://www.showdoc.com.cn/1846525842933182/8547724210192744
export function cancel(orderNos,id) {
    return request({
        url: '/order/orderBasic/cancel/' + orderNos+'/'+id,
        method: 'post',
    })
}

// 取消并退款
export function cancelAndRefund(data) {
    return request({
        url: '/order/orderBasic/cancelAndRefund',
        method: 'post',
        data
    })
}


// 提前还车并退款
export function earlyReturn(data) {
    return request({
        url: '/order/orderBasic/earlyReturn',
        method: 'post',
        data
    })
}


// 换车
export function changeCar(data) {
    return request({
        url: '/order/orderBasic/changeCar',
        method: 'post',
        data
    })
}

// 配车--车辆列表 https://www.showdoc.com.cn/1846525842933182/8550428501165596
export function carlist(data) {
    return request({
        url: '/order/orderBasic/carList',
        method: 'post',
        data,
    })
}
// 配车--车辆列表 维保信息
export function carListByMaintenance(data) {
  return request({
    url: '/order/orderBasic/carListByMaintenance',
    method: 'get',
    params: data,
  })
}

// 配车--车辆列表 维保信息
export function carListByMaintenancePc(data) {
  return request({
    url: '/order/orderBasic/carListByMaintenancePc',
    method: 'get',
    params: data,
  })
}
// 确定配车 https://www.showdoc.com.cn/1846525842933182/8551108486054123
export function supplyCar(data) {
    return request({
        url: '/order/orderBasic/supplyCar',
        method: 'put',
        data,
    })
}

// 分配选择用户列表 https://www.showdoc.com.cn/1846525842933182/8549754158573497
export function geUserlist(params) {
    return request({
        url: '/order/orderBasic/geUserlist',
        method: 'get',
        params,
    })
}

// 已分配的用户 https://www.showdoc.com.cn/1846525842933182/8549754158573497
export function getSalesman(params) {
    return request({
        url: '/order/orderBasic/getSalesman',
        method: 'get',
        params,
    })
}

// 短租订单分配业务员 https://www.showdoc.com.cn/1846525842933182/8550362185862696
export function distribution(data) {
    return request({
        url: '/order/orderBasic/distribution',
        method: 'put',
        data,
    })
}


// 交车验车预检
export function deliveryInspection(data) {
    return request({
        url: '/order/orderBasic/deliveryInspection',
        method: 'post',
        data,
    })
}

// 交车验车/还车验车 https://www.showdoc.com.cn/1846525842933182/8552170104839089
export function delivery(data) {
    return request({
        url: '/order/orderBasic/delivery',
        method: 'post',
        data,
    })
}

// 交车验车单列表
export function deliveryList(orderNo) {
    return request({
        url: '/order/orderBasic/deliveryInfo/' + orderNo,
        method: 'get',
    });
}

// 还车验车单列表
export function alsoCarTestInfo(orderNo) {
    return request({
        url: '/order/orderBasic/alsoCarTestInfo/' + orderNo,
        method: 'get',
    });
}

// 线下收款 收取租金
export function chargeRent(orderNo,id) {
    return request({
        url: '/order/orderBasic/chargeRent/' + orderNo+'/'+id,
        method: 'post',
    })
}

// 线下收款 收取押金
export function chargeDeposit(orderNo,id) {
    return request({
        url: '/order/orderBasic/chargeDeposit/' + orderNo+'/'+id,
        method: 'post',
    })
}
// 线下收取补缴费用
export function confirmReceipt(id) {
    return request({
        url: '/order/orderBasic/confirmReceipt/' + id,
        method: 'get',
    })
}
//  线下意见收取补缴费用
export function confirmReceiptAll(orderNo) {
    return request({
        url: '/order/orderBasic/confirmReceiptAll/' + orderNo,
        method: 'get',
    })
}
// 完成租车押金结算单
export function overDepositSettlement(data) {
  return request({
    url: 'order/orderBasic/overDepositSettlement',
    method: 'post',
    data:data
  })
}

// 押金结算退款
export function depositRefund(orderNo,id) {
  return request({
    url: 'order/orderBasic/depositRefund/' + orderNo+'/'+id,
    method: 'post',
  })
}

// 完成违章押金结算单
export function OverIllegalDeposit(data) {
  return request({
    url: 'order/orderBasic/OverIllegalDeposit',
    method: 'post',
    data:data
  })
}

// 违章押金退款
export function IllegalDepositRefund(orderNo) {
  return request({
    url: 'order/orderBasic/IllegalDepositRefund/' + orderNo,
    method: 'post',
  })
}
// 查询续租记录列表
export function listRenewRecord(query) {
  return request({
    url: '/order/orderBasic/renewRecords',
    method: 'get',
    params: query
  })
}

// 查询续租记录费用项
export function renewRecordDetail(orderNo,id) {
  return request({
    url: '/order/orderBasic/renewRecordDetail/'+orderNo+'/'+id,
    method: 'get',
  })
}

// 查询续租记录费用项
export function renewRecordDelete(orderNo,id) {
  return request({
    url: '/order/orderBasic/renewRecordDelete/'+orderNo+'/'+id,
    method: "delete",
  })
}

// 查询订单费用价格日历
export function orderPriceCalendars(orderNo) {
  return request({
    url: '/order/orderBasic/orderPriceCalendars/'+orderNo,
    method: 'get',
  })
}

// 费用缴纳
export function paymentOfFees(data) {
  return request({
    url: '/order/orderBasic/paymentOfFees',
    method: 'post',
    data: data,
  })
}

// 设置标签
export function setOrderLabels(data) {
  return request({
    url: '/order/orderBasic/setOrderLabels',
    method: 'post',
    data: data,
  })
}

// 新增费用
export function addNewExpenses(data) {
  return request({
    url: '/order/orderBasic/addNewExpenses',
    method: 'post',
    data: data,
  })
}
// 调整费用
export function costAdjustment(data) {
  return request({
    url: '/order/orderBasic/costAdjustment',
    method: 'post',
    data: data,
  })
}

//
export function orderRentDetail(orderNo) {
  return request({
    url: 'order/orderBasic/orderRentDetail/' + orderNo,
    method: 'get',
  })
}
//
export function orderDepositDetail(orderNo) {
  return request({
    url: 'order/orderBasic/orderDepositDetail/' + orderNo,
    method: 'get',
  })
}
//
export function orderIllegalDetail(orderNo) {
  return request({
    url: 'order/orderBasic/orderIllegalDetail/' + orderNo,
    method: 'get',
  })
}
//
export function orderVehicleDetail(orderNo) {
  return request({
    url: 'order/orderBasic/orderVehicleDetail/' + orderNo,
    method: 'get',
  })
}
//
export function orderViolationDetail(orderNo) {
  return request({
    url: 'order/orderBasic/orderViolationDetail/' + orderNo,
    method: 'get',
  })
}
// 订单列表--根据订单状态筛选
export function orderList(data) {
  return request({
    url: '/order/orderBasic/orderList',
    method: 'post',
    data: data,
  })
}

// 添加订单备注
export function addOrderRemark(data) {
  return request({
    url: '/order/orderBasic/orderRemark',
    method: 'post',
    data: data,
  })
}

// 续租验证
export function verificationContract(orderNo) {
  return request({
    url: '/order/orderBasic/verificationContract/'+orderNo,
    method: 'get'
  })
}

// 下单时间验证
export function validRntalTime(data) {
  return request({
    url: '/order/orderBasic/validRntalTime',
    method: 'post',
    data: data,
  })
}

//OTA订单费用补录
export function supplementaryExpenses(data) {
  return request({
    url: '/order/orderBasic/supplementaryExpenses',
    method: 'post',
    data: data,
  })
}

//获取ota订单补录费用
export function getSupplementaryPaymentList(orderNo) {
  return request({
    url: '/bills/financial/getSupplementaryPaymentList/'+orderNo,
    method: 'get'
  })
}

//改排司机
export function rescheduleDriver(data) {
  return request({
    url: '/order/orderBasic/rescheduleDriver',
    method: 'post',
    data: data,
  })
}
//删除订单
export function removeOrder(orderNo) {
  return request({
    url: '/order/orderBasic/'+orderNo,
    method: "delete",
  })
}

//查询免费时长
export function getFreeHour() {
  return request({
    url: '/order/orderBasic/getFreeHour/getFreeHour',
    method: 'get'
  })
}
